import java.text.SimpleDateFormat
import com.goal98.SoccerMatch
import com.goal98.Country
import com.goal98.Team
import com.goal98.Player
import com.goal98.League
import com.goal98.SitemapEntry

fixture {

    /**
     * country
     */

    england(Country){
        name = "英格兰"
    }

    spain(Country){
        name = "西班牙"
    }

    germany(Country){
        name = "德国"
    }

    italy(Country){
        name = "意大利"
    }

    france(Country){
        name = "法国"
    }

    china(Country){
        name = "中国"
    }

    /**
     * league
     */

    epl(League){
        name = "英超"
        country = england
    }

    sfd(League){
        name = "西甲"
        country = spain
    }

    gfd(League){
        name = "德甲"
        country = germany
    }

    ifd(League){
        name = "意甲"
        country = italy
    }

    ffd(League){
        name = "法甲"
        country = france
    }

    csl(League){
        name = "中超"
        country = china
    }

    

    /**
     * team
     */

    teamToDelete1(Team){
        name = "Team to Delete1"
        league = sfd
    }

    teamToDelete2(Team){
        name = "Team to Delete2"
        league = sfd
    }

    mu(Team){
        name = "曼联"
        league = epl
    }

    arsenal(Team){
        name = "阿森纳"
        league = epl
    }

    liverpool(Team){
        name = "利物浦"
        league = epl
    }

    chelsea(Team){
        name = "切尔西"
        league = epl
    }

    everton(Team){
        name = "埃弗顿"
        league = epl
    }

    astonVilla(Team){
        name = "阿斯顿维拉"
        league = epl
    }

    fulham(Team){
        name = "富勒姆"
        league = epl
    }

    tottenham(Team){
        name = "托特纳姆热刺"
        league = epl
    }

    westHam(Team){
        name = "西汉姆联队"
        league = epl
    }

    mc(Team){
        name = "曼城"
        league = epl
    }

    wigan(Team){
        name = "维冈"
        league = epl
    }

    stockCity(Team){
        name = "斯托克城"
        league = epl
    }

    bolton(Team){
        name = "博尔顿"
        league = epl
    }

    plymouth(Team){
        name = "普斯茅斯"
        league = epl
    }

    balckburn(Team){
        name = "布莱克本"
        league = epl
    }

    sunderland(Team){
        name = "桑德兰"
        league = epl
    }

    hullCity(Team){
        name = "胡尔城"
        league = epl
    }

    burnley(Team){
        name = "伯恩利"
        league = epl
    }

    wolf(Team){
        name = "狼队"
        league = epl
    }

    birmingham(Team){
        name = "伯明翰"
        league = epl
    }

    ba(Team){
        name = "巴萨"
        league = sfd
    }



    /**
     * player
     */

    ronaldo(Player){
        name = "C罗"
        team = mu
    }

    messi(Player){
        name = "梅西"
        team = ba
    }



    /**
    * match
     */

    SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")

    uefaChampiansLeagueFinal(SoccerMatch){
        name = "欧洲冠军杯决赛"
        homeTeam = mu
        awayTeam = ba
        matchDate = formatter.parse("2009-05-28 02:45:00")

    }

    eplMatch01(SoccerMatch){
        name = "英格兰超级联赛"
        homeTeam = mu
        awayTeam = arsenal
        matchDate = formatter.parse("2009-08-29 00:05:00")

    }

    testMatch02(SoccerMatch){
        name = "英格兰超级联赛"
        homeTeam = chelsea
        awayTeam = burnley
        matchDate = formatter.parse("2009-08-29 19:45:00")

    }

    testMatch03(SoccerMatch){
        name = "英格兰超级联赛"
        homeTeam = bolton
        awayTeam = liverpool
        matchDate = formatter.parse("2009-09-29 21:55:00")

    }

    testMatch04(SoccerMatch){
        name = "英格兰超级联赛"
        homeTeam = everton
        awayTeam = wigan
        matchDate = formatter.parse("2009-09-30 22:00:00")

    }


    //Sitemap start
    sitemapEntry01(SitemapEntry){
        loc = "http://www.goal98.com"
        lastmodDate = new Date()
        changefreq = 'weekly'
        priority = 1f
    }

    sitemapEntry02(SitemapEntry){
        loc = "http://www.goal98.com/controllers.gsp"
        lastmodDate = new Date()
        changefreq = 'weekly'
        priority = 0.5f
    }

    sitemapEntry03(SitemapEntry){
        loc = "http://www.goal98.com/zul/upcomingMatch.zul"
        lastmodDate = new Date()
        changefreq = 'weekly'
        priority = 0.6f
    }
    //Sitemao end

   
}